/*
package soundsystem;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;

//@ComponentScan
public class App {
    public static void main(String[] args) {
        //ApplicationContext context=new AnnotationConfigApplicationContext(App.class);
        ApplicationContext context=new AnnotationConfigApplicationContext(AppConfig.class);
        CDPlayer player = context.getBean(CDPlayer.class);
        player.play(); //会自动装配
    }
}
*/
